package com.woniu.bh.backstage.client;

import com.woniu.bh.backstage.param.BeautysalonCheckResultParam;
import com.woniu.bh.backstage.param.ConditionedQueryParam;
import com.woniu.bh.common.core.dto.ResultDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

/**
 * @author Daniel
 * @version 1.0.0
 * @ClassName BeautysalonServcieClient
 * @createTime 2020年10月17日 17:01:00
 */
@Component
@FeignClient(name = "beautysalon-server")
public interface BeautysalonServcieClient {

    @PostMapping("/beautysalon/user/conditionedquery")
    public ResultDto conditionedQuery(@RequestBody ConditionedQueryParam conditionedQueryParam);

    @GetMapping("/beautysalon/user/querybs")
    public ResultDto queryBeautysalon(@RequestParam Integer beautysalonId);

    @DeleteMapping("/beautysalon/user/del")
    public ResultDto beautysalonDel(@RequestParam Integer beautysalonId);

    @PutMapping("/beautysalon/user/auditpass")
    public ResultDto auditPass(@RequestParam Integer beautysalonId);

    @PutMapping("/beautysalon/user/auditrejected")
    public ResultDto auditRejected(@RequestBody BeautysalonCheckResultParam beautysalonCheckResultParam);
}
